package com.example.bookmanager_back.dao;

import com.example.bookmanager_back.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StudentMapper {
    @Select("select * from student")
    List<Student> getStudentList();

    @Select("select count(*) from student")
    int getStudentCount();
}
